﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    enum TaskType 
    {
        送信,
        杀怪,
        采集
    }
    class Task : NPC
    {
        private TaskType tnpc;
        public TaskType TNPC
        {
            get { return this.tnpc; }
            set { this.tnpc = value; }
        }
        
        public override void Speak()
        {
            Console.WriteLine("我叫{0}，我属于{1}类型的NPC，我是{2}NPC，我可以帮你{3}",base.Name,base.Type,this.tnpc,this.tnpc);
        }
        public Task(TaskType tnpc, string name, NPCType type) : base(name, type)
        {
            this.tnpc = tnpc;
        }
    }
}
